package com.example.zhuzehua.dao;

import com.example.zhuzehua.entity.TbGoods;
import com.example.zhuzehua.entity.TbUser;
import com.example.zhuzehua.entity.TbUserinfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TbUserDAO {
    List<TbUser> fundAll();

    int add(TbUser user);
    int updateUser(TbUser user);
    int delUser(int id);
    List<TbUser> queryByName(TbUser user);
    List<TbUser> queryLikeName(TbUser user);
    List<TbUser> queryTiaojiao(TbUser user);
    TbUserinfo login(TbUserinfo userinfo);
    List <TbUser> findAllFenye(@Param("pageNum")int pageNum, @Param("pageSize")int pageSize);
    List<TbGoods> findAllWendu();
    List<TbGoods> findAllGoodsByType(@Param("type")int type);
}
